package com.lkd.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lkd.entity.TaskEntity;
import org.apache.ibatis.annotations.*;

public interface TaskDao extends BaseMapper<TaskEntity> {

    @Results(id="taskMap",value = {
            @Result(property = "productTypeId",column = "product_type_id"),
            @Result(property = "taskType",column = "product_type_id",one = @One(select = "com.lkd.dao.TaskTypeDao.selectById"))
    })
    @Select("select * from tb_task where task_id = #{taskId}")
    TaskEntity getById(Long taskId);
}
